package org.springcloud.wisdom.spring_01_canteen.student;

import org.springcloud.wisdom.spring_01_canteen.login.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentService {
    @Autowired
    private StudentDao studentDao;

    // 根据 ID 获取学生信息
    public Student getStudentById(Integer id) {
        return studentDao.selectById(id);
    }
}
